
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
    overwrite: true,
    schema: {
        "https://jm-api.ezbbb.com/v1/graphql": {
            headers: {
                "Hasura-Client-Name": "hasura-console",
                "x-hasura-admin-secret": "ts123qwe"
            },
            method: "POST",
        }
    },
    documents: ['src/**/*.{ts,tsx}'],
    ignoreNoDocuments: true, // for better experience with the watcher
    generates: {
        "./src/graphql/": {
            preset: 'client'
        },
    }
};

export default config;
